
quit -sim
vcom clock-skew.vhd
vsim clock_skew

add wave R1in R1 R1out C1in C1 C1out R2 clk clk_delta

force clk 1 1, 0 {10 ns} -r 20
# Pulse width --> ^^^^^ <-- here

run 5 ns

# Normal - no fail
force R1in "00"
run 20 ns
force R1in "11"
run 20 ns
force R1in "00"
run 20 ns
force R1in "11"
run 60 ns

noforce clk
force clk 1 1, 0 {5 ns} -r 20

# Min-delay fail
change delta 0 ns
force R1in "00"
run 20 ns
force R1in "11"
run 20 ns
force R1in "00"
run 20 ns
force R1in "11"
run 60 ns

noforce clk
force clk 1 1, 0 {15 ns} -r 20

# Clock period fail
change delta 0 ns
change Tpi 5 ns
force R1in "00"
run 20 ns
force R1in "11"
run 20 ns
force R1in "00"
run 20 ns
force R1in "11"
run 60 ns
